import { defineStore } from "pinia";

export const useBillInfo = defineStore("billInfo", {
  state: () => ({
    billInfo: {} as any
  }),
  getters: {
    getBillInfo: state => {
      return state.billInfo;
    }
  },
  actions: {
    setBillInfo(billInfo: any) {
      this.$state.billInfo = billInfo;
    },
    removeBillInfo() {
      this.$state.billInfo = {} as any;
    },
  }
});
